const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 在根级的getters上 开发子模块的属性给别人看 给别人用
  name: state => state.user.userInfo.username, // 将用户名映射出来
  userId: state => state.user.userInfo.userId,// 将用户id映射出来
  staffPhoto: state => state.user.userInfo.staffPhoto
}

export default getters
